package day03;

import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

// @WebServlet(value = "/config",initParams = {
//         @WebInitParam(name = "a",value = "1"),
//         @WebInitParam(name = "b",value = "2")
// })
public class SerlvetConfigServlet extends HttpServlet {

    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) {
        System.out.println("SerlvetConfigServlet.service()");

        ServletConfig config=getServletConfig();

        String a=config.getInitParameter("a");
        String b=config.getInitParameter("b");

        System.out.println("a = " + a);
        System.out.println("b = " + b);



    }
}
